/**
 * 
 */
package com.yunyike.utils;

import javax.servlet.http.HttpServletRequest;

/**
 * @author zhengqiang.shi
 * 2016年1月1日 下午4:07:10
 */
public class CommonUtils {

	/**
	 * 判断ajax请求
	 * @param request
	 * @return
	 */
	public static boolean isAjax(HttpServletRequest request){
	    return  (request.getHeader("X-Requested-With") != null  && "XMLHttpRequest".equals( request.getHeader("X-Requested-With").toString())   ) ;
	}
}
